package com.ysx.teacher.day20210922.ch02;

public class Ch02Test {

    public static void main(String[] args) {

        //int a =5+5;
        //int a=Ch02.jiafa(5,5);

        //int y =50-30;

        //int y =sub(30,50);



        //int x =2*(1-(1+4)-5);


        int sum = Ch02.add(Ch02.jiafa(5,5),19.5f,sub(30,50));
        System.out.println(sum);

        Ch02 ch02= new Ch02();
        System.out.println("-------------------");

        // 在语法上没问题 但是不推荐使用  因为类名.方法名
        System.out.println(ch02.jiafa(10,20));
    }

    public static int sub( int yy,int xx){
        return xx-yy;
    }

}
